import QtQuick 2.15
import QtQuick.Window 2.15
import Qt.labs.settings 1.0

Window {
    id: window
    width: 800
    height: 600
    minimumWidth: 480
    minimumHeight: 320
    visible: true
    title: appName + " v" + version

    readonly property string appName: qsTr("Paimon Launcher")
    readonly property real block: 48
    readonly property real space: block / 4

    Settings {
        property alias x: window.x
        property alias y: window.y
        property alias width: window.width
        property alias height: window.height
    }

    Rectangle {
        id: background
        anchors.fill: parent
        color: "gray"
    }

    Installer {
        id: installer
        anchors.fill: parent
    }

    onClosing: {
        close.accepted = installer.handleAppExit()
    }

}
